package com.blue.gateway.enums;

/**
 * @author xiaoyiming
 * @date 2020/5/5 14:39
 * @depiction
 */
public enum ResultCodeEnum {
    SUCCESS(0, "成功"),
    FAIL(-1, "失败"),
    PARAM_ILLEGAL (2, "参数无效"),
    CONFIG_ILLEGAL (3, "支付配置无效"),
    REQUEST_PARAM_ILLEGAL (4, "请求参数无效"),
    REQUEST_FAIL (5, "请求失败"),

    NOTIFY_URL_IS_NULL (6, "NOTIFY_URL_IS_NULL"),
    OUT_TRADE_NO_IS_NULL (7, "OUT_TRADE_NO_IS_NULL"),
    SUBJECT_IS_NULL (8, "SUBJECT_IS_NULL"),
    TOTAL_AMOUNT_IS_NULL (9, "TOTAL_AMOUNT_IS_NULL"),

    NOT_INVOKE_SERVICE(887, "找不到对应的服务"),
    NOT_FIND_SERVICE(888, "找不到对应的服务"),
    SYSTEM_ERROR(999, "系统内部错误"),



    ;
    private int code;
    private String message;

    ResultCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
